package com.hn.zhijian.system.rsasdk;


/**
 * 解析错误类型
 */
public enum ResolveException {

    WRONG_SIGNATURE_EXCEPTION(1002,"签名错误"),
    TICK_LOAD_EXCEPTION(1000,"tick加载失败"),
    TICK_INVALID_EXCEPTION(1003,"当前tick已经失效,请重新生成!"),
    TICK_USED_EXCEPTION(1004,"当前tick已经被使用过请勿重复使用!"),
    KEY_NULL_EXCEPTION(1001,"公钥或者私钥为空");


    private int key;

    private String value;

    ResolveException(int key,String value){
        this.key = key;
        this.value = value;
    }

    public String getValue(){
        return value;
    }

    public int getKey(){
        return key;
    }
}
